package com.chzker.model;

import java.util.Date;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Wishes entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "wishes", catalog = "school")
public class Wishes implements java.io.Serializable {

	// Fields

	private Integer wishId;
	private String wishOwner;
	private String wishOwnerstate;
	private String wishContent;
	private Date wishDate;
	private Integer wishState;

	// Constructors

	/** default constructor */
	public Wishes() {
	}

	/** full constructor */
	public Wishes(String wishOwner, String wishOwnerstate, String wishContent,
			Date wishDate, Integer wishState) {
		this.wishOwner = wishOwner;
		this.wishOwnerstate = wishOwnerstate;
		this.wishContent = wishContent;
		this.wishDate = wishDate;
		this.wishState = wishState;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "wish_id", unique = true, nullable = false)
	public Integer getWishId() {
		return this.wishId;
	}

	public void setWishId(Integer wishId) {
		this.wishId = wishId;
	}

	@Column(name = "wish_owner", nullable = false, length = 10)
	public String getWishOwner() {
		return this.wishOwner;
	}

	public void setWishOwner(String wishOwner) {
		this.wishOwner = wishOwner;
	}

	@Column(name = "wish_ownerstate", nullable = false, length = 20)
	public String getWishOwnerstate() {
		return this.wishOwnerstate;
	}

	public void setWishOwnerstate(String wishOwnerstate) {
		this.wishOwnerstate = wishOwnerstate;
	}

	@Column(name = "wish_content", nullable = false)
	public String getWishContent() {
		return this.wishContent;
	}

	public void setWishContent(String wishContent) {
		this.wishContent = wishContent;
	}

	@Column(name = "wish_date", nullable = false, length = 19)
	public Date getWishDate() {
		return this.wishDate;
	}

	public void setWishDate(Date wishDate) {
		this.wishDate = wishDate;
	}

	@Column(name = "wish_state", nullable = false)
	public Integer getWishState() {
		return this.wishState;
	}

	public void setWishState(Integer wishState) {
		this.wishState = wishState;
	}

}